var path = require("path");

function dummyfs(root) {
    if (!root) root = "/";
    this.dir = root;
}
exports.dummyfs = dummyfs;

dummyfs.prototype.chdir = function(dir) {
    this.dir = path.resolve(this.dir, dir);
    return (this.dir);
}

dummyfs.prototype.cwd = function() {
    return (this.dir);
}